using System;
using System.ComponentModel.DataAnnotations;
using XchUserInfo.Model;

namespace XchUserInfo.Model
{
    public class XchUser
    {
        [Key]
        [FieldName("XchUserID")]
        public int XchUserID { get; set; }

        [Required]
        [StringLength(20)]
        [FieldName("XchUserName")]
        public string XchUserName { get; set; } = string.Empty;

        [Required]
        [StringLength(50)]
        [FieldName("XchUserPassword")]
        public string XchUserPassword { get; set; } = string.Empty;

        [StringLength(100)]
        [EmailAddress]
        [FieldName("XchUserEmail")]
        public string? XchUserEmail { get; set; }

        [StringLength(15)]
        [FieldName("XchUserPhone")]
        public string? XchUserPhone { get; set; }

        [StringLength(100)]
        [FieldName("XchUserAddress")]
        public string? XchUserAddress { get; set; }

        [FieldName("XchRegDateTime")]
        public DateTime XchRegDateTime { get; set; }
    }
}



